package experience3;

public class Teacher extends people {
	//构造函数
	public Teacher() {
	super();
	setCourses(new Course[3]);
	}
	public Teacher(int id,String teacherName,String teachersex){
	this.id=id;
	this.Name=teacherName;
	this.sex=teachersex;
	setCourses(new Course[3]);
	}
	//修改或是添加属性
	public int getId() {
	return id;
	}
	public void setId(int id) {
	this.id = id;
	}
	public String getTeacherName() {
	return Name;
	}
	public void setTeacherName(String teacherName) {
	this.Name = teacherName;
	}
	public Course[] getCourses() {
	 return courses;
	}
	public void setCourses(Course[] courses) {
	 this.courses = courses;
	}
	public String getTeachersex() {
	 return sex;
	}
	public void setTeachersex(String teachersex) {
	 this.sex = teachersex;
	 }
	}
